package com.cyc.dao;

import com.cyc.entity.Address;
import java.util.List;
import java.util.Map;

public interface AddressMapper {
    int deleteByPrimaryKey(Integer id);

    int deleteByUserId(Integer id);

    int insert(Address record);

    int insertByuserId(Map<String, Object> map);

    Address selectByPrimaryKey(Integer id);

    List<Address> selectAll();
    List<Address> selectAllByUserId(Integer id);

    int updateByPrimaryKey(Address record);

    int updateByUserId(Map<String, Object> map);
}